package com.mall.search.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author Darren
 * @date 2022-09-28 14:38
 * Description：
 */
@Data
@Document(indexName = "shopseckill", type = "seckillgoodses")
public class SeckillGoodsEs {
    @Id
    private String id;
    private String supId;
    private String skuId;
    @Field(type = FieldType.Text, searchAnalyzer = "ik_smart", analyzer = "ik_smart")
    private String name;
    private String images;
    private Integer price;
    private Double seckillPrice;
    private Integer num;
    private Integer storeCount;
    @Field(type = FieldType.Keyword)
    private String activityId;
}
